package edu.fudan.jwxt.dao;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.fudan.jwxt.entity.ClassTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ClassTimeDao extends BaseMapper<ClassTime> {
    @Update("UPDATE class_time SET id = #{newId} WHERE id = #{oldId}")
    int updateId(int oldId,int newId);
}
